package com.dszq.wemedia.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dszq.model.wemedia.pojos.WmNewsMaterial;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

public interface WmNewsMaterialMapper extends BaseMapper<WmNewsMaterial> {
    void saveRelations(@Param("materialIds") List<Integer> materialIds, @Param("newsId") Integer newsId, @Param("type")Short type);

    List<Integer> selectByWmMaterialId(@Param("materialId") Integer id);

    List<Integer> selectByNewId(@Param("newsId") Integer id);
}
